package com.qzsoft.system.modules.syslogoperation.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * @ClassName SysLogOperationEntity
 * @Description 操作日志
 * @author linhuawei
 * @since 2022-05-16
 */
@Data
@TableName("sys_log_operation")
public class ZhjdSysLogOperationEntity {

    /**
     * 数据主键
     */
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名", width = 12)
    private String creatorName;

    /**
     * 用户操作
     */
    @Excel(name = "用户操作", width = 20)
    private String operation;

    /**
     * 请求URI
     */
    @Excel(name = "请求URI", width = 40)
    private String requestUri;

    /**
     * 请求方式
     */
    @Excel(name = "请求方式", width = 12)
    private String requestMethod;

    /**
     * 请求参数
     */
    @Excel(name = "请求参数", width = 40)
    private String requestParams;

    /**
     * 请求时长(毫秒)
     */
    @Excel(name = "请求时长(毫秒)", type = 10, width = 20)
    private Long requestTime;

    /**
     * 状态 0：失败 1：成功
     */
    @Excel(name = "状态", width = 12, replace = {"失败_0", "成功_1"})
    private Integer status;

    /**
     * 操作IP
     */
    @Excel(name = "操作IP", width = 20)
    private String ip;

    /**
     * 用户代理
     */
    @Excel(name = "User-Agent", width = 40)
    private String userAgent;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss", width = 24)
    private Date createDate;

    /**
     * 创建者
     */
    private Long creator;

}
